<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default2" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>jQuery Countdown</title>
<style type="text/css">
@import "jquery.countdown.css";

#defaultCountdown { width: 240px; height: 45px; }
</style>

<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="jquery.countdown.js"></script>
<script type="text/javascript">
$(function () {
	shortly = new Date(); 
    shortly.setSeconds(shortly.getSeconds() + <%=sogiay %>); 
	$('#defaultCountdown').countdown({onExpiry: liftOff, until: shortly});
});
function liftOff() { 
    $.ajax({
      type: "GET",
      url: "hethan.aspx",
      data: { id: "<%=Request.QueryString["id"] %>"}
    }).done(function( ) {
        window.location = "Default.aspx?id=<%=Request.QueryString["id"] %>";
    });
} 
</script>
</head>
<body>
<div id="defaultCountdown"></div>
    <br />
    <br />
    <br />
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    <br />
    <br />
    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br />
    <br />
    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label><br />
    <br />
    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
</body>
</html>
